home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
wildcat
/
uparm11.zip
/
USERPARM.DOC
< prev
next >
Wrap
Text File
|
1992-12-05
|
3KB
|
57 lines
*****************************************************************************
U S E R P A R M v1.1 12-06-92
Copyright 1992, Doug McClellan
*****************************************************************************
USERPARM.COM reads data from the BBS dropfile USERINFO.DAT and extracts ten
parameters; user's first name, user's last name, connect rate, ansi(Y/N),
mnp(Y/N), time invoked, date invoked, minutes remaining, current conference,
and security level name. USERPARM.COM then passes these parameters to a batch
file you define via PASSPARM.BAT. Here's an abbreviated example:
USERPARM.COM target.bat ->> command line with your target batch file
PASSPARM.BAT ->> contents: "target.bat <comport> <baud>..."
PASSPARM.BAT is created by USERPARM.COM, and must always be called after
USERPARM.COM in a batch file. PASSPARM.BAT calls 'target.bat,' and passes
the extracted variables from USERINFO.DAT to DOS replacement variables in
TARGET.BAT. The DOS command SHIFT is necessary in TARGET.BAT to access the
tenth (security level name), as DOS currently only supports nine active
replacement variables in a batch file. A more complete application might
look like this:
@echo off
if exist passparm.bat erase passparm.bat
c:\wc30\utils\userparm c:\wc30\show-me.bat
if exist passparm.bat passparm.bat
:end
PASSPARM.BAT executes SHOW-ME.BAT, passing the ten parameters in its command
line. After successfully executing USERPARM.COM, you can view the contents of
PASSPARM.BAT to see how it works. SHOW-ME.BAT (supplied) displays the para-
meters passed from PASSPARM.BAT, and provides an example on how to access the
10th replacement variable.
Notes: Make sure USERINFO.DAT is in the current path or directory!
Here is the order in which parameters are passed:
1) first name 2) last name
3) connect rate 4) ansi enabled? Y/N
5) error correction? Y/N 6) time invoked
7) date invoked 8) minutes remaining
9) current conference 10) security level name
Call my BBS if you have problems or suggestions;
CloudBase! (503) 744-0668 : 24 hours, HST-DS, fido 1:152/56.
(Tell me if you're a visiting sysop, and I'll provide appropriate access).
If you find this program useful, a $5 encouragement would be appreciated:
Doug McClellan
814 N Cloverleaf Lp
Springfield, OR 97477
To extract parameters from DOOR.SYS, download DPARM12.ZIP. You can find it on
either the MSI support board, Charlatan's Cabin, or my own BBS.
**********************************( eof )***********************************